package jupiter.node;

public class SessionNode extends Node {
	
	/**
	 * Represents a connection, these are the only things not directly added to the DomainNode
	 * 
	 * 
	 * @param sessionid - the session id to send to, something like hank#jmvc.com@jabbify.com/123456
	 * user#domain@jabbify.com/sessionid
	 * 
	 * setup rules for session
	 */
	public SessionNode( Address userid) {
		super(userid);//need to add
		
		//need to find or create UserNode for this session
		
		//get DomainNode
		DomainNode d = GlobalNode.getDomain(userid);
		Node user = d.getNode( userid );
		//see if domain has user id, add this as listener, otherwise create user
		
	}
}
